<template>
  <div id="personal-nickname">
    <div class="nickname-box">
      <NavBar title="修改昵称" left-arrow @click-left="onClickLeft" />
      <div class="nickname">
        <input class="nick" type="text" placeholder="请输入昵称" />
      </div>
      <div class="nickname-btn">提交</div>
    </div>
  </div>
</template>
<script>
import { NavBar } from "vant";
export default {
  components: {
    NavBar,
  },

  data() {
    return {};
  },

  // 创建时
  created() {},

  // 方法
  methods: {
    // 跳出
    onClickLeft() {
      console.log("跳出");
      this.$router.go(-1);
    },

    // 网络请求
  },
};
</script>
<style lang="less" scoped>
#personal-nickname {
  width: 100vw;
  height: 100vh;
  background-color: #f7f6fb;
  .nickname {
    width: 295px;
    height: 40px;
    margin: 40px auto;
    border-radius: 20px;
    .nick {
      border: none;
      width: 255px;
      height: 40px;
      border-radius: 20px;
      font-size: 14px;
      padding-left: 20px;
      padding-right: 20px;
    }
  }
  .nickname-btn {
    width: 295px;
    height: 40px;
    margin: 60px 40px;
    line-height: 40px;
    background-color: #588bf7;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    font-size: 14px;
  }
}
</style>
